<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Bootstrap 实例 - 模态框（Modal）插件</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <script src="jquery/jquery-3.1.1.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<button class="btn btn-primary" data-toggle="modal" data-target="#myModal">分配角色</button>
<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 30%">
        <div class="modal-content" style="background-color: #afd9ee">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">
                    请选择该用户需要分配的角色
                </h4>
            </div>
            <form class="form-group" method="post" action="">
            <div class="modal-body">

                    <div class="checkbox">
                        <label><input type="checkbox" value="">选项 fgfdgsfdgsfdgdsfg1</label>
                    </div>
                    <div class="checkbox">
                        <label><input type="checkbox" value="">选项 2</label>
                    </div>
                    <div class="checkbox">
                        <label><input type="checkbox" value="">选项 2</label>
                    </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary">提交</button>
                <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
            </div>
            </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
</body>
</html>